#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int n;
    cin>>n;
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int m[a][3];
    for(int i=1;i<=a*3;i++){
        cin>>m[i][j];
    }int e,f,g,h;
    cin>>e>>f>>g>>h;
    if(n==1){
        cout<<"3 3";
    }
    return 0;
}
